﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class AddFriend : RightClickOption 
{

	public InputField nameField;

	void Start () 
	{
		sortingOrder = 1;
		actionName = "Add " + nameField.text;
	}
	void Update()
	{
		actionName = "Add " + nameField.text;
	}

	public override void Action (GameObject sender)
	{
		LoginManager.instance.AddFriend ();
	}
}
